package cn.ch.train.business.enums;

public enum BusinessExceptionEnum {
    STATION_HAS_EXIST("该车站已存在！"),
    TRAIN_CARRIAGE_HAS_EXIST("该车厢已存在！"),
    TRAIN_HAS_EXIST("该车次已存在！"),
    TRAIN_STATION_INDEX_HAS_EXIST("该车次经停站站序已存在！"),
    TRAIN_STATION_NAME_HAS_EXIST("该车次经停站站名已存在！"),
    ;

    private String desc;

    BusinessExceptionEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    @Override
    public String toString() {
        return "BusinessExceptionEnum{" +
                "desc='" + desc + '\'' +
                "} " + super.toString();
    }
}
